﻿using System;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Animation;

internal class Class2
{

    public PathFigure[] method_12()
    {
        return new PathFigure[]
        {
            this.class3_0.pathFigure_0 ,
            this.pathFigure_0,
            this.pathFigure_1
        };
    }

    public void method_13(bool bool_0, TimeSpan timeSpan_0)
    {
        this.method_14();
        this.class3_0.point = (new Point(this.left, (this.open > this.close) ? this.close : this.open));
        this.class3_0.width = (this.width);
        this.class3_0.height = (Math.Abs(this.open - this.close));
        this.class3_0.method_7(bool_0, timeSpan_0);
        if (bool_0)
        {
            this.pathFigure_0.BeginAnimation(PathFigure.StartPointProperty, new PointAnimation(new Point(this.left + this.width / 2.0, this.high), timeSpan_0));
            this.lineSegment_0.BeginAnimation(LineSegment.PointProperty, new PointAnimation(new Point(this.left + this.width / 2.0, this.low), timeSpan_0));
            return;
        }
        this.pathFigure_0.StartPoint = new Point(this.left + this.width / 2.0, this.high);
        this.lineSegment_0.Point = new Point(this.left + this.width / 2.0, (this.open < this.close) ? this.open : this.close);
        this.pathFigure_1.StartPoint = new Point(this.left + this.width / 2.0, (this.open > this.close) ? this.open : this.close);
        this.lineSegment_1.Point = new Point(this.left + this.width / 2.0, this.low);
    }

    private void method_14()
    {
        if (this.pathFigure_0 != null)
        {
            return;
        }
        this.lineSegment_0 = new LineSegment();
        this.lineSegment_1 = new LineSegment();
        this.class3_0 = new Class3();
        this.pathFigure_0 = new PathFigure
        {
            Segments = new PathSegmentCollection(1)
            {
                this.lineSegment_0
            }
        };
        this.pathFigure_1 = new PathFigure
        {
            Segments = new PathSegmentCollection(1)
            {
                this.lineSegment_1
            }
        };
    }

    // Token: 0x0400000B RID: 11
    private PathFigure pathFigure_0;

    // Token: 0x0400000C RID: 12
    private PathFigure pathFigure_1;

    // Token: 0x0400000D RID: 13
    private Class3 class3_0;

    // Token: 0x0400000E RID: 14
    private LineSegment lineSegment_0;

    // Token: 0x0400000F RID: 15
    private LineSegment lineSegment_1;


    internal double open { get; set; }


    internal double high { get; set; }

    internal double close { get; set; }


    internal double low { get; set; }


    internal double width { get; set; }

    internal double left { get; set; }
}
